import 'dart:math';

import 'package:flutter/material.dart';
import 'package:my_flutter_app/l10n/localization_intl.dart';

class LocalLanguageTestRoute extends StatefulWidget {
  @override
  _LocalLanguageTestRouteState createState() => _LocalLanguageTestRouteState();
}

class _LocalLanguageTestRouteState extends State<LocalLanguageTestRoute> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(
          '${DemoLocalizations.of(context).title} LocalLanguageTestRoute',
          style: TextStyle(fontSize: 13),
        ),
      ),
      body: Container(
        child: Padding(
          padding: EdgeInsets.all(2.0),
          child: Text(
            DemoLocalizations.of(context)
                .remainingEmailMessage(Random().nextInt(100)),
          ),
        ),
      ),
    );
  }
}
